package com.ruoyi.passenger.service.impl;

import java.util.List;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.passenger.domain.TbPassenger;
import com.ruoyi.passenger.domain.TbPassengerCarOrder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.passenger.mapper.TbPassengerCarMapper;
import com.ruoyi.passenger.domain.TbPassengerCar;
import com.ruoyi.passenger.service.ITbPassengerCarService;

/**
 * 乘客打车表Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-26
 */
@Service
public class TbPassengerCarServiceImpl implements ITbPassengerCarService 
{
    @Autowired
    private TbPassengerCarMapper tbPassengerCarMapper;

    /**
     * 查询乘客打车表
     * 
     * @param passengerId 乘客打车表主键
     * @return 乘客打车表
     */
    @Override
    public TbPassengerCar selectTbPassengerCarByPassengerId(Long passengerId)
    {
        return tbPassengerCarMapper.selectTbPassengerCarByPassengerId(passengerId);
    }

    /**
     * 查询乘客打车表列表
     * 
     * @param tbPassengerCar 乘客打车表
     * @return 乘客打车表
     */
    @Override
    public List<TbPassengerCar> selectTbPassengerCarList(TbPassengerCar tbPassengerCar)
    {
        return tbPassengerCarMapper.selectTbPassengerCarList(tbPassengerCar);
    }

    /**
     * 新增乘客打车表
     * 
     * @param tbPassengerCar 乘客打车表
     * @return 结果
     */
    @Override
    public int insertTbPassengerCar(TbPassengerCar tbPassengerCar)
    {
        return tbPassengerCarMapper.insertTbPassengerCar(tbPassengerCar);
    }

    /**
     * 修改乘客打车表
     * 
     * @param tbPassengerCar 乘客打车表
     * @return 结果
     */
    @Override
    public int updateTbPassengerCar(TbPassengerCar tbPassengerCar)
    {
        return tbPassengerCarMapper.updateTbPassengerCar(tbPassengerCar);
    }

    /**
     * 批量删除乘客打车表
     * 
     * @param passengerIds 需要删除的乘客打车表主键
     * @return 结果
     */
    @Override
    public int deleteTbPassengerCarByPassengerIds(Long[] passengerIds)
    {
        return tbPassengerCarMapper.deleteTbPassengerCarByPassengerIds(passengerIds);
    }

    /**
     * 删除乘客打车表信息
     * 
     * @param passengerId 乘客打车表主键
     * @return 结果
     */
    @Override
    public int deleteTbPassengerCarByPassengerId(Long passengerId)
    {
        return tbPassengerCarMapper.deleteTbPassengerCarByPassengerId(passengerId);
    }




}
